.class Lcom/xingbook/park/activity/am;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/StringBuilder;

.field private e:I


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/LoginAct;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/am;->b:Ljava/lang/String;

    iput-object v0, p0, Lcom/xingbook/park/activity/am;->c:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/am;->d:Ljava/lang/StringBuilder;

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/park/activity/am;->e:I

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/am;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/am;)Ljava/lang/StringBuilder;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/am;->d:Ljava/lang/StringBuilder;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/park/activity/am;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/park/activity/am;->e:I

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/am;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/am;->b:Ljava/lang/String;

    return-void
.end method

.method static synthetic b(Lcom/xingbook/park/activity/am;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/am;->c:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v7, 0x1

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/am;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/LoginAct;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v1, p1, Landroid/os/Message;->what:I

    const/16 v2, 0x3e9

    if-ne v1, v2, :cond_3

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-static {v0, v1, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    :cond_2
    :goto_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v1, :cond_0

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    instance-of v1, v1, Lcom/tencent/mm/sdk/openapi/i;

    if-eqz v1, :cond_0

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/tencent/mm/sdk/openapi/i;

    iget v2, v1, Lcom/tencent/mm/sdk/openapi/i;->a:I

    packed-switch v2, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    const-string v1, "\u60a8\u62d2\u7edd\u4e86\u5fae\u4fe1\u8d26\u53f7\u6388\u6743\uff01"

    invoke-static {v0, v1, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_3
    iget v1, p1, Landroid/os/Message;->what:I

    const/16 v2, 0x3ea

    if-ne v1, v2, :cond_2

    const/4 v1, 0x3

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v2, Ljava/lang/String;

    iget-object v3, p0, Lcom/xingbook/park/activity/am;->c:Ljava/lang/String;

    iget v4, p0, Lcom/xingbook/park/activity/am;->e:I

    iget-object v5, p0, Lcom/xingbook/park/activity/am;->b:Ljava/lang/String;

    iget-object v6, p0, Lcom/xingbook/park/activity/am;->d:Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static/range {v0 .. v6}, Lcom/xingbook/park/activity/LoginAct;->a(Lcom/xingbook/park/activity/LoginAct;ILjava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :pswitch_2
    iget-object v1, v1, Lcom/tencent/mm/sdk/openapi/i;->e:Ljava/lang/String;

    const-string v2, "\u83b7\u53d6\u5fae\u4fe1\u6388\u6743..."

    invoke-static {v0, v2}, Lcom/xingbook/park/activity/LoginAct;->a(Lcom/xingbook/park/activity/LoginAct;Ljava/lang/String;)V

    sget-object v2, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v3, Lcom/xingbook/park/activity/an;

    invoke-direct {v3, p0, v1, v0}, Lcom/xingbook/park/activity/an;-><init>(Lcom/xingbook/park/activity/am;Ljava/lang/String;Lcom/xingbook/park/activity/LoginAct;)V

    invoke-interface {v2, v3}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0

    :pswitch_3
    const-string v1, "\u60a8\u53d6\u6d88\u4e86\u5fae\u4fe1\u8d26\u53f7\u767b\u5f55\uff01"

    invoke-static {v0, v1, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch -0x4
        :pswitch_1
        :pswitch_0
        :pswitch_3
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
